package inherit;

/**
 * @author yuisama
 * @date 2022/09/09 21:22
 **/
public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.name = "66";
        dog.age = 5;
        dog.weight = 6.5;
        Cat cat = new Cat();
        cat.name = "小喵";
        cat.age = 1;
        cat.weight = 10.1;
        dog.eat("狗粮");
        dog.bark();
        cat.eat("猫粮");
        cat.miao();
    }
}